package com.xuanwei.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author mjy
 * @since 2019-07-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class XwUserAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ＩＤ
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 用户Id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 省
     */
    @TableField("province")
    private String province;

    @TableField("city")
    private String city;

    @TableField("area")
    private String area;

    @TableField("province_id")
    private Integer provinceId;

    @TableField("city_id")
    private Integer cityId;

    @TableField("area_id")
    private Integer areaId;

    /**
     * 收货人姓名
     */
    @TableField("receive_name")
    private String receiveName;

    /**
     * 收货人电话号码
     */
    @TableField("receive_phone")
    private String receivePhone;

    /**
     * 详细地址
     */
    @TableField("receive_address")
    private String receiveAddress;

    /**
     * 0非默认,1默认
     */
    @TableField("default_flag")
    private Integer defaultFlag;

    /**
     * 0正常1删除
     */
    @TableField("delete_flag")
    @TableLogic
    private Integer deleteFlag;

    @TableField("update_time")
    private LocalDateTime updateTime;

    @TableField("create_time")
    private LocalDateTime createTime;


}
